package org.demo.pattern.bridge;
/**
 * 桥接模式
 * 将抽象和行为划分开来，既各自独立又能动态组合。
 * @author  
 * @date    2011-5-20
 * @file    org.demo.pattern.bridge.BridgeTest.java
 */
public class BridgeTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		new CoffeeActionSingleton(new MilkCoffeeAction());

		Coffee coffee_m = new MediumCoffee();
		Coffee coffee_l = new LargeCoffee();
		
		coffee_m.pourCoffee();
		coffee_l.pourCoffee();
	}

}
